﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入两个整数");
            father a = new father();
            a.Num = Convert.ToInt32(Console.ReadLine());
            father b = new father();
            b.Numm = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("请输入一个操作符");
            father c = new father();
            c.Nummm = Convert.ToString(Console.ReadLine());
            if (c.Nummm == "+" )
            {
                jia jia = new jia();
                jia.Num = a.Num;
                jia.Numm = b.Numm;
                jia.Jia();
            }
            else if (c.Nummm == "-")
            {
                jian jian = new jian();
                jian.Num = a.Num;
                jian.Numm = b.Numm;
                jian.Jian();
            }
            else if (c.Nummm == "*")
            {
                cheng cheng = new cheng();
                cheng.Num = a.Num;
                cheng.Numm = b.Numm;
                cheng.Cheng();
            }
            else if (c.Nummm == "/")
            {
                chu chu = new chu();
                chu.Num = a.Num;
                chu.Numm = b.Numm;
                chu.Chu();
            }
            

            
        }
    }
}
